//
//  Person.swift
//  Swift_Learn
//
//  Created by EDY on 5/22/25.
//

import Foundation
class Person : Describable {
    var name: String
    var age: Int
    init(name: String, age: Int) {
        self.name = name
        self.age = age
    }
    
    func greet() {
        print("你好，我的名字叫\(name) 年龄\(age)")
    }
    var description: String {
        return "姓名\(name) , 年龄\(age)"
    }
    
    func describe() -> String {
    return description
    }
    
}
